using System.ComponentModel.DataAnnotations;

namespace WebShop.Contracts
{
    [Table("Order Details")]
    public partial class Order_Detail
    {
        [ForeignKey("Order"), Column(Order = 0), Key(), Required]
        public int OrderID { get; set; }

        [ForeignKey("Product"), Column(Order = 1), Key(), Required]
        public int ProductID { get; set; }

        public decimal UnitPrice { get; set; }

        public short Quantity { get; set; }

        public float Discount { get; set; }

        public virtual Order Order { get; set; }
        public virtual Product Product { get; set; }
    }
}
